import request from '@/utils/request'

// 查询线体列表
export function listSet_line(query) {
  return request({
    url: '/set/line/list',
    method: 'get',
    params: query
  })
}

// 查询线体下拉列表
export function listAllSet_line(query) {
  return request({
    url: '/set/line/interface',
    method: 'get',
    params: query
  })
}

// 查询线体详细
export function getSet_line(id) {
  return request({
    url: '/set/line/' + id,
    method: 'get'
  })
}

// 新增线体
export function addSet_line(data) {
  return request({
    url: '/set/line',
    method: 'post',
    data: data
  })
}

// 修改线体
export function updateSet_line(data) {
  return request({
    url: '/set/line',
    method: 'put',
    data: data
  })
}

// 删除线体
export function delSet_line(id) {
  return request({
    url: '/set/line/' + id,
    method: 'delete'
  })
}

// 导出线体
export function exportSet_line(query) {
  return request({
    url: '/set/line/export',
    method: 'get',
    params: query
  })
}
// 下载模板
export function importTemplate() {
  return request({
    url: '/set/line/importTemplate',
    method: 'get',
  })
}